<%--
  Created by IntelliJ IDEA.
  User: lenovo
  Date: 2025/6/1
  Time: 18:12
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<html>
<head>
    <title>订单管理</title>
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <link type="text/css" rel="stylesheet" href="css/index.css">
    <link type="text/css" rel="stylesheet" href="css/base.css">
</head>
<body>

<div class="container">
    <jsp:include page="header.jsp"></jsp:include>

    <div class="main order-list">
        <table>
            <thead>
            <tr>
                <th>ID</th>
                <th>订单编号</th>
                <th>商品ID</th>
                <th>总金额</th>
                <th>商品数量</th>
                <th>买家ID</th>
                <th>买家用户名</th>
                <th>卖家ID</th>
            </tr>

            </thead>
            <tbody>
            <c:forEach items="${orderList}" var="order">
                <tr>
                    <td>${order.id}</td>
                    <td>${order.code}</td>
                    <td>${order.product_id}</td>
                    <td>${order.buy_price}</td>
                    <td>${order.amount}</td>
                    <td>${order.user.id}</td>
                    <td>${order.user_name}</td>
                    <td>${order.seller_id}</td>
                </tr>
            </c:forEach>
            </tbody>
        </table>
    </div>
</div>

</body>
</html>
